<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>AdminLTE 2 | Dashboard</title>
        <!-- Tell the browser to be responsive to screen width -->
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <!-- Bootstrap 3.3.6 -->
        <link rel="stylesheet" href="/Public/ui/framework/bootstrap-3.3.7-dist/css/bootstrap.min.css">
        <!-- Font Awesome -->
        <link rel="stylesheet" href="/Public/ui/fonts/Font-Awesome-4.7.0/css/font-awesome.min.css">
        <!-- Ionicons -->
        <link rel="stylesheet" href="/Public/ui/fonts/ionicons-2.0.1/css/ionicons.min.css">
        <!-- Theme style -->
        <link rel="stylesheet" href="/Public/ui/adminlte/css/AdminLTE.min.css">
        <!-- AdminLTE Skins. Choose a skin from the css/skins
             folder instead of downloading all of them to reduce the load. -->
        <link rel="stylesheet" href="/Public/ui/adminlte/css/skins/_all-skins.min.css">
        
    </head>
    <body>
        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper" style="margin:0;">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                
<h1>
    订单管理
    <small>advanced tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">商城</a></li>
    <li class="active">订单管理</li>
</ol>

            </section>

            <!-- Main content -->
            <section class="content">
                <div class="row">
                    <div class="col-xs-12">
                        
<div class="box">
    <div class="box-header">
        <ul class="nav nav-tabs">
            <?php if(is_array($tabs)): foreach($tabs as $key=>$vo): ?><li class="<?php echo ($vo["active"]); ?>"><a href="<?php echo U($vo['url']);?>"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; ?>
        </ul>
        <div class="row">
            <div class="col-md-5">
                <button type="button" class="btn btn-default navbar-btn xsui-btn-add-dialog" data-url="<?php echo U('edit');?>" title="新增文章">新增</button>
                <button type="button" class="btn btn-danger navbar-btn xsui-btn-multi-delete" data-url="<?php echo U('delete','id=varkey');?>">批量删除</button>
                <button type="button" class="btn btn-success navbar-btn xsui-btn-refresh">刷新</button>
            </div>
            <div class="col-md-7">
                <form class="navbar-form navbar-right">
                    <div class="form-group">
                        <input type="text" name="word" class="form-control" placeholder="关键词..." title="用户名" value="<?php echo ($search['word']); ?>">
                    </div>
                    <button type="submit" class="btn btn-default">搜索</button>
                </form>
            </div>
        </div>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>#</th>
                    <th>订单编号</th>
                    <th>快递单号</th>
                    <th>会员名称</th>
                    <th>运费金额</th>
                    <th>商品金额</th>
                    <th>订单金额</th>
                    <th>折扣金额</th>
                    <th>下单时间</th>
                    <th>订单备注</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <?php if(is_array($list)): foreach($list as $key=>$vo): ?><tr data-key="<?php echo ($vo["id"]); ?>">
                    <td title="<?php echo ($vo["id"]); ?>"></td>
                    <td><?php echo ($vo["serial_no"]); ?></td>
                    <td title="<?php echo ($vo["express_no"]); ?>"><div class="notbreakline-ellipsis"><?php echo ($vo["express_no"]); ?></div></td>
                    <td><?php echo ($vo["buyer_name"]); ?></td>
                    <td><?php echo ($vo["delivery_fee"]); ?></td>
                    <td><?php echo ($vo["product_amount"]); ?></td>
                    <td><?php echo ($vo["order_amount"]); ?></td>
                    <td><?php echo ($vo["discount_amount"]); ?></td>
                    <td><?php echo ($vo["create_time"]); ?></td>
                    <td><?php echo ($vo["buyer_remark"]); ?></td>
                    <td class="xsui-action-td">
                        <div class="btn-group">
                            <a class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" href="#">
                                操作
                                <span class="caret"></span>
                            </a>
                            <ul class="dropdown-menu pull-right" style="min-width: 60px">
                                <li><a href="<?php echo U('edit','id='.$vo['id']);?>" class="xsui-btn-edit-dialog" title="编辑文章 - <?php echo ($vo["user_name"]); ?>"><span class="glyphicon glyphicon-edit"></span>编辑</a></li>
                                <li><a href="<?php echo U('delete','id='.$vo['id']);?>" class="xsui-btn-delete" title="删除文章 - <?php echo ($vo["user_name"]); ?>"><span class="glyphicon glyphicon-remove"></span>删除</a></li>
                            </ul>
                        </div>
                    </td>
                </tr><?php endforeach; endif; ?>
            </tbody>
        </table>
        <?php echo ($page); ?>
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->

                        <!-- /.box -->
                    </div>
                    <!-- /.col -->
                </div>
                <!-- /.row -->
            </section>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->

        <!-- jQuery 2.2.3 -->
        <script src="/Public/ui/plugins/jQuery/jquery-2.2.3.min.js"></script>
        <!-- Bootstrap 3.3.6 -->
        <script src="/Public/ui/framework/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
        <!-- DataTables -->
        <script src="/Public/ui/plugins/datagridlib/datatables/jquery.dataTables.min.js"></script>
        <script src="/Public/ui/plugins/datagridlib/datatables/dataTables.bootstrap.min.js"></script>
        <!-- Layer 3.0.1 -->
        <script src="/Public/ui/plugins/dialoglib/layer-v3.0.1/layer.js"></script>
        <script src="/Public/theme/public/plugins/jquery-togglelink-1.0/jquery-togglelink-1.0.js"></script>
        <script src="/Public/theme/public/plugins/jquery-ajaxcombobox-1.0/jquery-ajaxcombobox-1.0.js"></script>
        <script src="/Public/ui/adminlte/js/xsApp.js"></script>

        
        
        
        <!-- page script -->
        <script type="text/javascript">
            $(function () {
                xsApp.initDatagridPage();
            });
        </script>
        
        
    </body>
</html>